<?php include 'header.php'; ?>
<script language="JavaScript">
    function setFocus(num){
      if(num == 1)
	  {
        document.inquiry.first_name.focus();
      }
	  else if(num == 2)
	  {
        document.inquiry.last_name.focus();
      }
      else if(num == 3)
	  {
        document.inquiry.address.focus();
      }
      else if(num == 4)
	  {
        document.inquiry.city.focus();
      }
      else if(num == 5)
	  {
        document.inquiry.province.focus();
      }
      else if(num == 6)
	  {
        document.inquiry.postal_code.focus();
      }
      else if(num == 7)
	  {
        document.inquiry.email.focus();
      }
      else if(num == 8)
	  {
        document.inquiry.phone_number.focus();
      }
      else if(num == 9)
	  {
        document.inquiry.alt_phone_number.focus();
      }
    }
</script>

<style type="text/css">
#left
{
padding-left:0px;
}
#right
{
padding-right:10px;
}

#table_padding1
{
padding-top:0px;
padding-left:25px;
margin-bottom:0px;
background-color:#F0F0F0;
border-width:.1px 1px 0px 1px;
border-style: solid;
border-color:#909090 ;
}
#table_padding2
{
padding-top:20px;
padding-left:25px;
padding-bottom:30px;
background-color:#F0F0F0;
border-width:0px 1px 0px 1px;
border-style: solid;
border-color:#909090 ;
}
#table_padding3
{
padding:25px;
margin-bottom:30px;
background-color:#F0F0F0;
border-width:0px 1px 1px 1px;
border-style: solid;
border-color:#909090 ;
}
td
{
font-family:"Trebuchet MS",Verdana,Helvetica,Arial,sans-serif,"Trebuchet MS";
//font-family:"Lucida Grande",Arial,sans-serif;
font-size: 100%;
font-weight:lighter;
}
#font
{
color:#A80000;
font-family:"Trebuchet MS",Verdana,Helvetica,Arial,sans-serif,"Trebuchet MS";
font-weight:normal;
}

#field {
font: 11px Verdana, Sans-Serif;
width: 300px;
}

#button {
font: 11px Verdana, Sans-Serif;
width: 60px;
}

textarea {
font: 11px Verdana, Sans-Serif;
width: 300px;
height: 120px;
}

#warning
{
padding:5px;
margin-bottom:0px;
background-color:#E77471;
border-width:1px;
border-style: solid;
border-color:#A80000;
}

#section
{
font-size:"20px";
font-family:"Trebuchet MS",Verdana,Helvetica,Arial,sans-serif,"Trebuchet MS";
//font-family:"Lucida Grande",Arial,sans-serif;
font-weight:normal;
}



#font
{
color:#A80000;
font-family:"Lucida Grande",Arial,sans-serif;
font-weight:normal;
}

#table_padding
{
padding:0px 0px 0px 0px;
//margin-bottom:5px;
//background-color:#F0F0F0;
//border-style:solid;
//border-color:#900000 #A80000;
//border:1px solid #A80000;
}

#image
{
padding:5px;
border-width:1px;
border-style: solid;
border-color:#909090;
}

#id
{
padding-top:0px;
}

</style>
			<table id="header" width=80% align="center">
				<?php if(strcmp($warning,"")!=0) {?>
				<tr>
					<td>
						<p id="warning"><?php echo $warning; ?></p>
					</td>
				</tr>
				<?php }?>
				<tr>
					<td>
						<h1 valign="top" id="font">Contact Us </h1>
					</td>
				</tr>
				<tr>
					<td>
						<h2 id="font">Contact Information </h2>
					</td>
				</tr>
			</table>

			<table id="table_padding" width=80%  align="center">
			<tr>
				<td valign="top" width="75%">
					Roman Rycyk<br>
					32 Timberwood trail,<br>
					Winnipeg, Manitoba<br>
					R2V 3X2<br>
					<b>Email  : </b><a href="mailto:rycyk@shaw.ca">rycyk@shaw.ca</a><br>
					<b>Phone : </b> 204-955-3218<br>
				</td>
				<td>
					<div id="image"><img width="300" alt="" src=<?php echo base_url()."galleries/set_5/00000.jpg" ?>></div>
				</td>
			</tr>
			<tr>
				<td>
					
				</td>
			</tr>
		</table>

			<table width=80% align="center">
				<tr valign="top">
					<td>
						<h2 id="font">Request a Call</h2>
					</td>
				</tr>
			</table>

			<?php 
			
			$text_description = array(
              'name'        => 'description',
              'id'           => 'username',
              'value'       => $description,
			  'style'		=> 	'overflow: hidden'
 
            );

			$brief_description = array(
              'name'        => 'brief_description',
              'id'           => 'username',
              'value'       => $brief_description,
			  'style'		=> 	'overflow: hidden'
 
            );

			$MAX_SIZE=43;
			echo form_open('inquiry'); ?>
			
			<table id="table_padding1" width=80% align="center">
				<tr>
					<td  colspan="2"> <?php echo "<br />\n"; ?></td>
				</tr>
				<tr>
					<td id="left" align=left width=35%><?php	echo "Name"; ?><font color="#FF0000">*</font></td>
					<td align=right width=5%><?php	echo ":"; ?></td>
					<td align=left><input id="field" size=<?php	echo $MAX_SIZE; ?> name="first_name" type="text" value="<?php echo $f_name;?>" onClick="setFocus(1)"></td>
				</tr>
				<tr>
					<td id="left" align=left><?php	echo "Address";  ?><font color="#FF0000"></font></td>
					<td align=right><?php	echo ":"; ?></td>
					<td align=left><input id="field" size=<?php	echo $MAX_SIZE; ?> name="address" type="text" value="<?php echo $addr;?>" onClick="setFocus(3)"></td>
				</tr>
				<tr>
					<td id="left" align=left><?php	echo "City";  ?><font color="#FF0000"></font></td>
					<td align=right><?php	echo ":"; ?></td>
					<td align=left><input id="field" size=<?php	echo $MAX_SIZE; ?> name="city" type="text" value="<?php echo $city;?>" onClick="setFocus(4)"></td>
				</tr>
				<tr>
					<td id="left" align=left><?php	echo "Province";  ?><font color="#A80000"></font></td>
					<td align=right><?php	echo ":"; ?></td>
					<td id="right" align=left><input id="field" size=<?php	echo $MAX_SIZE; ?> name="province" type="text" value="<?php echo $prov;?>" onClick="setFocus(5)"></td>
				</tr>
				<tr>
					<td id="left" align=left><?php	echo "Postal Code";  ?><font color="#FF0000"></font></td>
					<td align=right><?php	echo ":"; ?></td>
					<td id="right" align=left><input id="field" size=<?php	echo $MAX_SIZE; ?> name="postal_code" type="text" value="<?php echo $p_code;?>" onClick="setFocus(6)"></td>
				</tr> 
				<tr>
					<td id="left" align=left><?php	echo "Email";  ?><font color="#FF0000">*</font></td>
					<td align=right><?php	echo ":"; ?></td>
					<td id="right" align=left><input id="field" size=<?php	echo $MAX_SIZE; ?> name="email" type="text" value="<?php echo $email;?>" onClick="setFocus(7)"></td>
				</tr>
				<tr>
					<td id="left" align=left><?php	echo "Phone";  ?><font color="#FF0000">*</font></td>
					<td align=right><?php	echo ":"; ?></td>
					<td id="right" align=left><input id="field" size=<?php	echo $MAX_SIZE; ?> name="phone_number" type="text" value="<?php echo $p_number;?>" onClick="setFocus(8)"></td>
				</tr>
				<tr>
					<td id="left" align=left><?php	echo "Alt. Phone";  ?></td>
					<td align=right><?php	echo ":"; ?></td>
					<td id="right" align=left><input id="field" size=<?php	echo $MAX_SIZE; ?> name="alt_phone_number" type="text" value="<?php echo $alt_p_number;?>" onClick="setFocus(9)"></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Built-in cabinetry";  ?></td>
					<td align=right><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="builtincab" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "(If yes provide a brief description)";  ?><font color="#FF0000">*</font></td>
					<td align="right" valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><?php	echo form_textarea($brief_description);  ?></td>
				</tr>
				<tr>
					<td style="border-bottom: 1px solid rgb(223, 223, 223);" id="left" align=left valign="top"></td>
					<td style="border-bottom: 1px solid rgb(223, 223, 223);" align="right" valign="top"></td>
					<td style="border-bottom: 1px solid rgb(223, 223, 223);" id="right" align=left></td>
				</tr>
			</table>
			<table id="table_padding2" width="80%" align="center">
				<tr>
					<td align=left valign="top"><font size="4px"><?php	echo "Features"; ?></font><br/><br/></td>
				</tr>
				<tr>
					<td width=35% id="left" align=left valign="top"><?php	echo "2 piece bathroom ";  ?></td>
					<td width=5% align=right valign="top"><?php	echo ":"; ?></td>
					<td align=left><input type="checkbox" name="bathroom2piece" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "3 piece bathroom ";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td align=left><input type="checkbox" name="bathroom3piece" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Gas Fireplace ";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="gasfireplace" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Pub Style sit at Bar";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="pubstylebar" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Walk-up bar/Convenience centre";  ?></td>
					<td align=right valign="center"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="walkupbarconvenience" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Office";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="office" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Recreation Area";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="recreationarea" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Bedrooms";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="bedrooms" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Home Gym";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="homegym" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Finished Laundry Room";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="finishedlaundryroom" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Kitchen";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="kitchen" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Enlarge Window";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="enlargewindow" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "New Exterior Entrance";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="newextentrance" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "In-Law Appartment";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="inlawapt" value="Yes" /></td>
				</tr>
				
				<tr>
					<td id="left" align=left valign="top"><br/><br/><font size="4px"><?php	echo "Flooring";  ?><br/><br/></font></td>
				</tr>
				
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Carpet / Berber";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="carpetberber" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Ceramic Tile";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="ceramictile" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Laminate";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="laminate" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Engineered Hardwood";  ?></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><input type="checkbox" name="enghdwood" value="Yes" /></td>
				</tr>
				<tr>
					<td id="left" align=left valign="top"><?php	echo "Comment";  ?><font color="#FF0000">*</font></td>
					<td align=right valign="top"><?php	echo ":"; ?></td>
					<td id="right" align=left><?php	echo form_textarea($text_description);  ?></td>
				</tr>
			</table>
			<table width="80%" id="table_padding3" align="center">
							<tr>
								<td align="center">
									<input id="button" type="submit" name="submit" value="Submit" />
									<input id="button" type="submit" name="reset" value="Reset" />
								</td>
							</tr>
			</table>
			<?php	echo form_close();  ?>

<?php include 'footer.php'; ?>